package com.integral.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.integral.dao.IBannerImgDao;
import com.integral.entity.BannerImg;
import com.integral.vo.BannerImgVo;

@Service("bannerImgService")
public class BannerImgService {

	@Resource
	private IBannerImgDao bannerImgDao;
	/**
	 * 查询首页轮播图
	 * @return
	 */
	public List<BannerImgVo> findBannerImg(BannerImgVo bannerImgVo){
		return bannerImgDao.findBannerImg(bannerImgVo);
	}
	/**
	 * 上传首页轮播图
	 * @param bannerImg
	 */
	public void addBannerImg(BannerImg bannerImg){
		bannerImgDao.addBannerImg(bannerImg);
	}
	/**
	 * 修改轮播图
	 * @param bannerImgVo
	 * @return
	 */
	public int updateBannerImg(BannerImgVo bannerImgVo){
		return bannerImgDao.updateBannerImg(bannerImgVo);
	}
	/**
	 * 删除轮播图
	 * @param bannerImgVo
	 * @return
	 */
	public int delBannerImg(BannerImgVo bannerImgVo){
		return bannerImgDao.delBannerImg(bannerImgVo);
	}
}
